package com.zhuiyun.pm.client.home.service;

import com.zhuiyun.pm.client.home.pojo.ClientAnnouncement;
import com.zhuiyun.pm.page.PageRequest;
import com.zhuiyun.pm.result.CommonResult;

/**
 * @Description 用户端——公告
 * @ClassName AnnouncementService
 * @Author HH
 * @Date 2023/3/13 13:37
 **/
public interface AnnouncementService {

    /**
     * @Description 查询公告
    * @Author HH
    * @Date 2023/3/13 14:11
    * @Return com.zhuiyun.pm.result.CommonResult

    */
    CommonResult selectAnnouncementList(String address, PageRequest pageRequest);

    /**
     * @Description 公告浏览量自增
     * @Author HH
     * @Date 2023/3/15 21:24
     * @Return com.zhuiyun.pm.result.CommonResult
     * @param clientAnnouncement
     */
    CommonResult announcementPageViewsIncr(ClientAnnouncement clientAnnouncement);

    /**
    * @Description 根据token查询用户信息
    * @Author HH
    * @Date 2023/3/19 19:13
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param token
    */
    CommonResult getUserInfoByToken(String token);
}
